<?php
namespace plugins\yifang_backend_account\utils\contract;

use app\utils\contract\Backend_account;

class Agent implements Backend_account
{
    public function loginStatus()
    {
       return false;
    }

    public function init()
    {
        dd("初始化数据");
    }

    public function login()
    {
        return app("YifangBackendAccount_C_Admin_login")->login();
    }

    public function getLoginData()
    {
        return app("YifangBackendAccount_L_Admin_login")->getLoginData();
    }

    public function logout()
    {
        app("YifangBackendAccount_L_Admin_login")->logout();
    }

    /**
     * 菜单数据
     */
    public function menuData()
    {
        return app("YifangBackendAccount_C_Admin_rbac")->menuData();
    }
}